﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Tycho.Parser.Tokens;
using Tycho.Runtime;
using Tycho.Compiler;

namespace TychoTest {
    [TestClass]
    public class TestCompilerUtilities {
        [TestMethod]
        public void TestSymbolToIdentifier () {
            Symbol id = Namespaces.User.Get ("my-id");

            Symbol resultId = new ModuleMap (Namespaces.Root).ExpectSymbol (CompilerUtilities.SymbolToIdentifier (id, null));

            Assert.ReferenceEquals (id, resultId);
        }
    }
}
